export default function download(href: string, name: string) {
  const eleLink = document.createElement("a")
  eleLink.download = name
  eleLink.href = href
  eleLink.click()
  eleLink.remove()
}
